<template>
  <div class="loginBox">
    <!-- 登录 -->
    <Login v-if="isLogin" v-model:isLogin="isLogin" />
    <!-- 注册 -->
    <Register v-else v-model:isLogin="isLogin" />
  </div>
</template>

<script lang="ts" setup>
import { ref } from 'vue';
import Login  from './Login.vue';
import Register  from './Register.vue';
const isLogin = ref(true);

</script>
<style scoped lang="scss">
.loginBox {
  background-color: #e9e9f7;
  position: relative;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
</style>